<div id="view-content">
    <div class="row-fluid">
        <div class="span12">
            <table class="table well" >
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Name</th>
                        <th>Email</th>
                        <th>Contact</th>
                        <th>Title</th>
                        <th>Message</th>
                        <th>Date (Y-m-d)</th>
                    </tr>
                </thead>
                <?php
                $index = 1;
                foreach ($this->details as $detail) :
                    $detailsJson = $detail['details'];
                    $djson = json_decode($detailsJson);
                    ?>
                    <tr>
                        <td><?=$index;?></td>
                        <td><?=$djson->details->name?></td>
                        <td><?=$djson->details->email?></td>
                        <td><?=$djson->details->contact?></td>
                        <td><?=$djson->details->title?></td>
                        <td><?=$djson->details->message?></td>
                        <td><?=$detail['date']?></td>
                    </tr>

                <?php endforeach;
                ?>
            </table>
        </div>
    </div>
</div>